package com.funo.wcity.app.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.funo.wcity.app.dao.TblMailAnnexDAO;
import com.funo.wcity.app.entity.TblMailAnnex;
import com.funo.wcity.app.service.TblMailAnnexService;

@Service("tblMailAnnexService")
public class TblMailAnnexServiceImpl implements TblMailAnnexService {
	@Resource(name="tblMailAnnexDAO")
	private TblMailAnnexDAO tblMailAnnexDAO;
	
	public TblMailAnnex getTblMailAnnex(Integer idMailAnnex) {
		return (TblMailAnnex)this.tblMailAnnexDAO.get(idMailAnnex);
	}

	public List getTblMailAnnexList(String idMailAnnex,Integer status) {
		return this.tblMailAnnexDAO.getTblMailAnnexList(idMailAnnex,status);
	}

	public void saveTblMailAnnex(TblMailAnnex tblMailAnnex) {
		 this.tblMailAnnexDAO.saveOrUpdate(tblMailAnnex);
	}

	public void delTblMailAnnex(TblMailAnnex tblMailAnnex) {
		 this.tblMailAnnexDAO.delete(tblMailAnnex);
	}

}
